import { ref, watch } from "vue";
export default function(title = "默认的title") {
  const titleRef = ref(title);
  watch(
    titleRef,
    (newValue) => {
      console.log(newValue, 1);
      document.title = newValue;
    },
    {
      immediate: true,
    }
  );
  return titleRef
}
